* {
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
}
/*图片渐显*/
@keyframes show {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
/*外部div*/
#carousel {
  position: relative;
  margin: 0 auto;
  width: 1023px;
  text-align: center;
}
#carousel .carousel-main {
  /*图片区*/
  height: 400px;
}
#carousel .carousel-main li {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
}
#carousel .carousel-main li.active {
  animation: show 700ms forwards;
  display: block;
}
#carousel .carousel-main li img {
  display: block;
}
#carousel .carousel-nav {
  /*导航区*/
  position: relative;
  top: -50px;
  display: inline-block;
  z-index: 100;
}
#carousel .carousel-nav li {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #fff;
  opacity: 0.7;
  cursor: pointer;
  display: inline-block;
  margin: 0 3px;
}
#carousel .carousel-nav li.active {
  background: #ff4040;
}
#carousel .carousel-left {
  width: 28px;
  height: 60px;
  position: absolute;
  top: 50%;
  margin-top: -30px;
  left: 20px;
  cursor: pointer;
  background: url("../img/focus_lr0918.png") no-repeat 0 0;
  z-index: 100;
}
#carousel .carousel-left:hover {
  background-position: 0 -61px;
}
#carousel .carousel-right {
  width: 28px;
  height: 60px;
  position: absolute;
  top: 50%;
  margin-top: -30px;
  right: 20px;
  cursor: pointer;
  background: url("../img/focus_lr0918.png") no-repeat -52px 0;
  z-index: 100;
}
#carousel .carousel-right:hover {
  background-position: -52px -61px;
}
